package com.mvvm;

import android.databinding.DataBindingUtil;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import com.cjt2325.cameraview.R;
import com.cjt2325.cameraview.databinding.ActivityMvvmTestBinding;
import com.mvvm.model.Person;

public class MvvmTestActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        ActivityMvvmTestBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_mvvm_test);

        binding.setPerson(new Person("test"));
    }
}
